﻿<%@ Page Title="" Theme="Default_Themes" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="KyNangTinHocNgoaiNgu.aspx.cs" Inherits="DanhMuc_KyNangTinHocNgoaiNgu" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div class="row-fluid">
        <div class="span12">
            <div class="box">
                <div class="box-title">
                    <h3><i class="icon-file"></i>Kỹ năng ngoại ngữ</h3>
                    <div class="box-tool">
                        <a data-action="collapse" href="#"><i class="icon-chevron-up"></i></a>
                        <a data-action="close" href="#"><i class="icon-remove"></i></a>
                    </div>
                </div>
                <div class="box-content" style="border:solid 1px;">
                    <asp:UpdatePanel ID="udt1" runat="server">
                        <ContentTemplate>
                            <asp:GridView ID="grid" runat="server" AutoGenerateColumns="false" DataKeyNames="ID">
                                <Columns>
                                    <asp:TemplateField HeaderText="Chọn">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkchon" Enabled="true" Checked='<%#Eval("Chon") %>' runat="server" />
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle"/>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Tên ngoại ngữ">
                                        <ItemTemplate>
                                            <%#Eval("Name") %>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCellDropdown" HorizontalAlign="Center" VerticalAlign="Middle"/>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Nghe">
                                        <ItemTemplate>
                                            <asp:DropDownList ID="drlNghe" runat="server" DataSourceID="source" CssClass="dropdownformat" DataValueField="ID" DataTextField="XepLoai" SelectedValue=<%#Eval("Nghe") %>></asp:DropDownList>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCellDropdown" HorizontalAlign="Center" VerticalAlign="Middle"/>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Nói">
                                        <ItemTemplate>
                                            <asp:DropDownList ID="drlNoi" runat="server" DataSourceID="source" CssClass="dropdownformat" DataValueField="ID" DataTextField="XepLoai" SelectedValue=<%#Eval("Noi") %>></asp:DropDownList>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCellDropdown" HorizontalAlign="Center" VerticalAlign="Middle"/>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Đọc">
                                        <ItemTemplate>
                                            <asp:DropDownList ID="drlDoc" runat="server" DataSourceID="source" CssClass="dropdownformat" DataValueField="ID" DataTextField="XepLoai" SelectedValue=<%#Eval("Doc") %>></asp:DropDownList>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCellDropdown" HorizontalAlign="Center" VerticalAlign="Middle"/>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Viết">
                                        <ItemTemplate>
                                            <asp:DropDownList ID="drlViet" runat="server" DataSourceID="source" CssClass="dropdownformat" DataValueField="ID" DataTextField="XepLoai" SelectedValue=<%#Eval("Viet") %>></asp:DropDownList>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCellDropdown" HorizontalAlign="Center" VerticalAlign="Middle"/>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                            <div style="height:15px"></div>
                            <asp:LinkButton ID="btnsavengoaingu" class="btn btn-primary"  runat="server" Width="60px" OnClick="btnsavengoaingu_Click"><i class="icon-save"></i>&nbsp;&nbsp;Lưu</asp:LinkButton>
                            <span class="help-inline"><asp:Label ID="lblmessage" runat="server" Text="" ForeColor="Red"></asp:Label></span>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="btnsavengoaingu" EventName="Click" />
                        </Triggers>
                    </asp:UpdatePanel>
                </div>
            </div>
        </div>
    </div>
    <div class="row-fluid">
        <div class="span6">
            <div class="box">
                <div class="box-title">
                    <h3><i class="icon-bell-alt"></i>Kỹ năng tin học</h3>
                    <div class="box-tool">
                        <a data-action="collapse" href="#"><i class="icon-chevron-up"></i></a>
                        <a data-action="close" href="#"><i class="icon-remove"></i></a>
                    </div>
                </div>
                <div class="box-content">
                    <asp:UpdatePanel ID="udt2" runat="server">
                        <ContentTemplate>
                            <asp:GridView ID="gridtinhoc" runat="server" AutoGenerateColumns="false" DataKeyNames="ID">
                                <Columns>
                                    <asp:TemplateField HeaderText="Chọn">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkchon" Enabled="true" Checked='<%#Eval("Chon") %>' runat="server" />
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle"/>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Trình độ">
                                        <ItemTemplate>
                                            <%#Eval("Name") %>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCellDropdown" HorizontalAlign="Center" VerticalAlign="Middle"/>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Xếp loại">
                                        <ItemTemplate>
                                            <asp:DropDownList ID="drlTrinhDo" runat="server" DataSourceID="source" CssClass="dropdownformat" DataValueField="ID" DataTextField="XepLoai" SelectedValue=<%#Eval("KyNang") %>></asp:DropDownList>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCellDropdown" HorizontalAlign="Center" VerticalAlign="Middle"/>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                            <div style="height:15px"></div>
                            <asp:LinkButton ID="btnsavetinhoc" class="btn btn-primary"  runat="server" Width="60px" OnClick="btnsavetinhoc_Click"><i class="icon-save"></i>&nbsp;&nbsp;Lưu</asp:LinkButton>
                            <asp:LinkButton ID="btnclose" Visible="true" runat="server" class="btn  btn-danger"><i class="icon-signout"></i> Đóng</asp:LinkButton>
                            <span class="help-inline"><asp:Label ID="lblmessage1" runat="server" Text="" ForeColor="Red"></asp:Label></span>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="btnsavetinhoc" EventName="Click" />
                            <asp:AsyncPostBackTrigger ControlID="btnclose" EventName="Click" />
                        </Triggers>
                    </asp:UpdatePanel>
                </div>
            </div>
        </div>
        <div class="span6">
            <div class="box">
                <div class="box-title">
                    <h3><i class="icon-bell-alt"></i>Kỹ năng khác</h3>
                    <div class="box-tool">
                        <a data-action="collapse" href="#"><i class="icon-chevron-up"></i></a>
                        <a data-action="close" href="#"><i class="icon-remove"></i></a>
                    </div>
                </div>
                <div class="box-content">
                    <asp:UpdatePanel ID="udt3" runat="server">
                        <ContentTemplate>
                            <asp:GridView ID="gridkhac" runat="server" AutoGenerateColumns="false" DataKeyNames="ID">
                                <Columns>
                                    <asp:TemplateField HeaderText="Chọn">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkchon" Enabled="true" Checked='<%#Eval("Chon") %>' runat="server" />
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle"/>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Kỹ năng">
                                        <ItemTemplate>
                                            <%#Eval("Name") %>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCellDropdown" HorizontalAlign="Center" VerticalAlign="Middle"/>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Xếp loại">
                                        <ItemTemplate>
                                            <asp:DropDownList ID="drlKyNang" runat="server" DataSourceID="source" CssClass="dropdownformat" DataValueField="ID" DataTextField="XepLoai" SelectedValue=<%#Eval("KyNang") %>></asp:DropDownList>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="ItemGridCellDropdown" HorizontalAlign="Center" VerticalAlign="Middle"/>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                            <div style="height:15px"></div>
                            <asp:LinkButton ID="btnsavekynangkhac" class="btn btn-primary"  runat="server" Width="60px" OnClick="btnsavekynangkhac_Click"><i class="icon-save"></i>&nbsp;&nbsp;Lưu</asp:LinkButton>
                            <span class="help-inline"><asp:Label ID="lblmessage2" runat="server" Text="" ForeColor="Red"></asp:Label></span>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="btnsavekynangkhac" EventName="Click" />                            
                        </Triggers>
                    </asp:UpdatePanel>
                </div>
            </div>
        </div>
    </div>
    <asp:ObjectDataSource ID="source" runat="server" SelectMethod="GetXepLoai" TypeName="CatalogAccess"></asp:ObjectDataSource>
</asp:Content>

